﻿
@{
    ViewBag.Title = "NoticeDetail";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css{

    <link href="~/Assets/css/lib/bootstrap-select.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="~/Assets/summernote/summernote.css" rel="stylesheet" />

    <style>
        .required {
            color: red;
        }

        .newsbody {
            width: 760px;
            margin: 30px auto;
        }
    </style>
}

<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a>通知公告详细</a>
            </li>
            <li class="crumb-link">
                <a>通知公告</a>
            </li>
            <li class="crumb-trail">通知公告详细</li>
        </ol>
    </div>
</header>
<div id="content" ng-cloak ng-controller="NoticeController" ng-init="DataLoading=false;LoadingMsg='正在导入...';page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';
     Id='@(Request.QueryString["Id"].IsEmpty() ? "" : Request.QueryString["Id"])';
     AddModel={};
     GetNoticeDetail(Id);
">
    <div class="load" ng-show="DataLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />
			</path>
		</svg>
            <div class="load-msg" ng-bind="LoadingMsg"></div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-info panel-border top mb35">
                <div class="panel-heading">
                    <span class="panel-title">{{NoticeDetail.TypeName}}</span>
                </div>
                <div class="panel-body">
                    <p style="text-align: center; font-size: 20px; width: 760px; border-bottom: 1px solid rgb(216,216,216); margin: 0px auto; padding-bottom: 30px; ">{{NoticeDetail.NoticeTitle}}</p>

                    <div class="newsbody" id="noticecontent">

                    </div>
                    <div class="newsbody">
                        <div ng-repeat="x in NoticeDetail.ImageList">
                            <img style="width:100%;" src="{{x.FilePath}}" />
                        </div>
                    </div>
                    <div class="newsbody">
                        <div ng-repeat="x in NoticeDetail.VideoList">
                            <video autoplay controls>
                                <source src="{{x.FilePath}}" type="video/mp4">
                                您的浏览器不支持video标签。
                            </video>
                        </div>
                    </div>
                    <div class="newsbody">
                        <p ng-repeat="x in NoticeDetail.FileList"><a href="../download/DownloadFile?FileId={{x.FileId}}">{{x.FileName}}</a></p>
                    </div>
                    <p class="newsbody" style="font-size:12px">{{NoticeDetail.PublishTime}}</p>
                </div>
                <div class="panel-footer">
                    <div class="col-lg-4"></div>
                    <a type="button" href="NoticePageList?page={{page}}" class="btn btn-warning">返回</a>
                </div>
            </div>
        </div>
    </div>

</div>
@section Js{
    <script src="~/Bussiness/js/libs/upload.js"></script>
    <script src="~/Bussiness/js/pg/Notice.js?v=@DateTime.Now.ToString("yyMMddHHmm")"></script>
    <script src="~/Bussiness/js/libs/moment.min.js"></script>
    <script src="~/Bussiness/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Bussiness/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Bussiness/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Bussiness/js/libs/fileinput.js"></script>
    <script src="~/Bussiness/js/libs/zh.js"></script>
    <script src="~/Assets/summernote/summernote.min.js"></script>
    <script src="~/Assets/summernote/summernote-zh-CN.js"></script>

    <script>
        $('.summernote').summernote({
            height: 255, //set editable area's height
            focus: false, //set focus editable area after Initialize summernote
            oninit: function () { },
            onChange: function (contents, $editable) { },
            lang: 'zh-CN'
        });
        $('#docfiles').fileinput({
            language: 'zh'
        });
        $('#videofiles').fileinput({
            language: 'zh'
        });
    </script>
}
